import divisions from './pc'

function _fn( divisions ){

    let res = []
    for( let i = 0; i < divisions.length; i ++ ){
        let obj={
            label: divisions[i].name,
            value: divisions[i].name
        }

        if( divisions[i].children ){
            obj.children = _fn( divisions[i].children )
        }

        res[i] = obj
    } // for i


    return res;
}


export default _fn(divisions);


